home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-07-05 | 5.9 KB | 215 lines |
- # Top-level makefile for Mesa
-
- # Mesa 3-D graphics library
- # Version: 1.2.1
- # Copyright (C) 1995 Brian Paul (brianp@ssec.wisc.edu)
- #
- # This library is free software; you can redistribute it and/or
- # modify it under the terms of the GNU Library General Public
- # License as published by the Free Software Foundation; either
- # version 2 of the License, or (at your option) any later version.
- #
- # This library is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # Library General Public License for more details.
- #
- # You should have received a copy of the GNU Library General Public
- # License along with this library; if not, write to the Free
- # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-
- # $Id: Makefile,v 1.17 1995/06/21 16:25:23 brianp Exp $
-
- # $Log: Makefile,v $
- # Revision 1.17 1995/06/21 16:25:23 brianp
- # added irix5-dso, linux-elf and unixware targets
- # Release 1.2.1
- #
- # Revision 1.16 1995/05/22 16:53:59 brianp
- # Release 1.2
- #
- # Revision 1.15 1995/05/16 14:12:23 brianp
- # added amix target
- # added contrib tree to tar file
- #
- # Revision 1.14 1995/04/20 17:35:52 brianp
- # made SCO a separate target
- #
- # Revision 1.13 1995/04/20 13:32:34 brianp
- # added SCO to Linux config
- #
- # Revision 1.12 1995/04/17 14:50:24 brianp
- # 1.1.4 beta release
- #
- # Revision 1.11 1995/03/31 17:05:29 brianp
- # 1.1.3 beta release
- #
- # Revision 1.10 1995/03/14 14:34:02 brianp
- # 1.1.2 beta release
- #
- # Revision 1.9 1995/03/09 14:51:39 brianp
- # added osf1 target per Joseph Canedo
- #
- # Revision 1.8 1995/03/08 19:50:30 brianp
- # added depend files to TAR_FILES
- #
- # Revision 1.7 1995/03/07 14:38:33 brianp
- # changed NAME to Mesa-1.1.1beta
- #
- # Revision 1.6 1995/03/07 14:31:31 brianp
- # new hpux CFLAGS per Jan Springer's suggestion
- #
- # Revision 1.5 1995/03/04 20:00:57 brianp
- # changed tar NAME from Mesa1.1beta to Mesa-1.1beta
- #
- # Revision 1.4 1995/03/04 19:47:13 brianp
- # 1.1 beta revision
- #
- # Revision 1.3 1995/03/01 21:11:53 brianp
- # added GLUT to tar target
- #
- # Revision 1.2 1995/02/24 16:20:26 brianp
- # added netbsd target
- #
- # Revision 1.1 1995/02/24 16:19:25 brianp
- # Initial revision
- #
-
- DESTDIR = /usr/skunk
-
- all: sco
-
- install:
- -mkdir -p $(DESTDIR)/lib
- -mkdir -p $(DESTDIR)/include/GL
- -cp lib/*.a $(DESTDIR)/lib
- -copy -mr include/GL $(DESTDIR)/include/GL
- cd widgets ; $(MAKE) $@
- cd samples ; $(MAKE) $@
- cd book ; $(MAKE) $@
- cd demos ; $(MAKE) $@
-
- sco sco-gcc:
- -mkdir lib
- cd src ; $(MAKE) $@
- cd src-tk ; $(MAKE) $@
- cd src-aux ; $(MAKE) $@
- cd src-glu ; $(MAKE) $@
- cd demos ; $(MAKE) $@
- cd samples ; $(MAKE) $@
- cd book ; $(MAKE) $@
- cd widgets ; $(MAKE)
-
- # To add a new configuration for your system add it to the list below
- # then update the Make-config file.
-
-
-
- default:
- @echo "Type one of the following:"
- @echo " make aix for IBM RS/6000 systems with AIX"
- @echo " make amix for Amiga 3000 UX SVR4 v2.1 systems"
- @echo " make freebsd for FreeBSD systems with GCC"
- @echo " make gcc for a generic system with GCC"
- @echo " make hpux for HP systems with HPUX"
- @echo " make irix4 for SGI systems with IRIX 4.x"
- @echo " make irix5 for SGI systems with IRIX 5.x"
- @echo " make irix5-dso for SGI systems with IRIX 5.x, make DSO"
- @echo " make irix6 for SGI systems with IRIX 6.x"
- @echo " make linux for Linux systems with GCC"
- @echo " make linux-elf for Linux systems, make ELF shared lib"
- @echo " make mswindows for MS Windows"
- @echo " make netbsd for NetBSD 1.0 systems with GCC"
- @echo " make osf1 for DEC Alpha systems with OSF/1"
- @echo " make sco for SCO ODT & OpenServer systems"
- @echo " make sco-gcc for SCO ODT & OpenServer systems with GCC"
- @echo " make sunos4 for Sun systems with SunOS 4.x"
- @echo " make sunos4-gcc for Sun systems with SunOS 4.x and GCC"
- @echo " make sunos5 for Sun systems with SunOS 5.x"
- @echo " make sunos5-gcc for Sun systems with SunOS 5.x and GCC"
- # @echo " make ultrix for DEC systems with Ultrix"
- @echo " make unixware for PCs running UnixWare"
- @echo " make vistra for Stardent Vistra systems"
- @echo " make clean"
-
-
-
- aix amix freebsd gcc hpux irix4 irix5 irix5-dso irix6 linux linux-elf netbsd osf1 sco sco-gcc sunos4 sunos4-gcc sunos5 sunos5-gcc ultrix unixware vistra:
- -mkdir lib
- cd src ; $(MAKE) $@
- cd src-tk ; $(MAKE) $@
- cd src-aux ; $(MAKE) $@
- cd src-glu ; $(MAKE) $@
- cd demos ; $(MAKE) $@
- cd samples ; $(MAKE) $@
- cd book ; $(MAKE) $@
-
- mswindows:
- @echo "See windows/README.WIN for installation"
-
-
-
- # Remove .o files, emacs backup files, etc.
- clean:
- -rm include/*~
- -rm include/GL/*~
- -rm lib/*.a
- -rm src/*.o src/*~
- -rm src-aux/*.o
- -rm src-glu/*.o src-glu/*~
- -rm src-tk/*.o
- -rm book/*.o book/*~
- -rm demos/*.o demos/*~
- -rm samples/*.o samples/*~
-
-
- # Remove everthing that can be remade
- realclean: clean
- cd book ; $(MAKE) realclean
- cd demos ; $(MAKE) realclean
- cd samples ; $(MAKE) realclean
- -rm lib/*.a
-
-
-
- HOME = Mesa
- NAME = Mesa-1.2.1
-
- TAR_FILES = \
- $(HOME)/README \
- $(HOME)/LICENSE \
- $(HOME)/Makefile \
- $(HOME)/Make-config \
- $(HOME)/include/*.h \
- $(HOME)/include/GL/*.h \
- $(HOME)/src*/NOTES \
- $(HOME)/src*/README \
- $(HOME)/src*/Makefile \
- $(HOME)/src*/depend \
- $(HOME)/src*/*.[ch] \
- $(HOME)/demos/Makefile \
- $(HOME)/demos/*.c \
- $(HOME)/demos/isosurf.dat \
- $(HOME)/book/Makefile \
- $(HOME)/book/NOTES \
- $(HOME)/book/README \
- $(HOME)/book/*.[ch] \
- $(HOME)/samples/Makefile \
- $(HOME)/samples/NOTES \
- $(HOME)/samples/README \
- $(HOME)/samples/*.rgb \
- $(HOME)/samples/*.c \
- $(HOME)/GLUT/README-MESA \
- $(HOME)/widgets \
- $(HOME)/contrib \
- $(HOME)/windows
-
- tar:
- cd .. ; \
- tar -cvf $(NAME).tar $(TAR_FILES) ; \
- gzip $(NAME).tar ; \
- mv $(NAME).tar.gz $(HOME)
-
-
-